/*
包含n个接口请求函数的模块
函数的返回值: promise对象
 */

import ajax from './ajax'
// const BASE_URL = 'http://localhost:4000'

import tools from '../common/tools.js'

let BASE_URL = tools.baseUrl

// 1、根据经纬度获取位置详情
// export const reqAddress = () => ajax(`${getbaseurl()}/position/asd`)
// export const reqAddress = () => ajax(`${BASE_URL}/position/asd`)
export const reqAddress = () => ajax(`api/position/asd`)

export const reqUserInfo = () => {
  return ajax(`${BASE_URL}/reqUserInfo`)
}
